import configparser
import os

conf = configparser.ConfigParser()
root_path = os.path.dirname(os.path.abspath('.'))
conf.read(root_path + '/config.conf')


def get_host():
    return conf.get("mysql", "host")


def get_port():
    return int(conf.get("mysql", "port"))


def get_user():
    return conf.get("mysql", "user")


def get_password():
    return conf.get("mysql", "password")


def get_database():
    return conf.get("mysql", "database")
